﻿using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace YuFeng.Models
{
    public class Region
    {
        [Key]
        [DatabaseGenerated(DatabaseGeneratedOption.None)]
        public int Id { get; set; }
        public int ParentId { get; set; }
        [MaxLength(32)]
        public string Name { get; set; }
        [MaxLength(32)]
        public string ShortName { get; set; }
        public float Longitude { get; set; }
        public float Latitude { get; set; }
        public int Level { get; set; }
        public int Sort { get; set; }
        public bool Status { get; set; }
    }
}